#include "gtest/gtest.h"
// Story : complicated
// Event -> Stream create 
//  ---> init memory ;  
//  ---> **** Recover from no-file
//  ---> Recover from file
// Event -> append: 
//      **** app1) no-offset
//      app2) with offset
// Event -> read
//      **** read1) no seq;
//      read2) with seq  




/*     New Project for it 
class Appender {
public:
    Appender * fromTail(){
        return nullptr;
    }
    Appender * fromSequence(uint64_t sequenceNo){
        return nullptr;
    }
    
    ~Appender(){
    }
    uint64_t append(const std::string & str){
        stream->append(seq, str);
        // lock() 
        // seq , offset 
        // data->insert(seq, str);
        // index->insert(seq, offset, str.size());
        // meta->size().inc();
        return 0ull;
    }
private:
    Appender(Stream * stream, const uint64_t sequenceNo)
    : stream_(stream)
    , sequenceNo_(sequenceNo)
    {
        stream->recovery();  // rebuild the index structure

        offset = stream->offset(sequenceNo_);
        stream->truncate(offset);
    }

private:
    Stream * stream_;
    uint64_t sequenceNo_;
};
*/
TEST(MainTest, test){
    ASSERT_TRUE(true);
}
